#! /usr/bin/python3

import paramiko

hostname = '192.168.148.144'
username = 'root'
password = '684042'
paramiko.util.log_to_file('syslogin.log')

ssh = paramiko.SSHClient()
ssh.load_system_host_keys()

ssh.connect(hostname=hostname,username=username,password=password)
stdin,stdout,stderr=ssh.exec_command('free -m')
print(stdout.read())
ssh.close()
